def ssh_connect(ip, username, password):
        import paramiko
        # 创建SSH客户端对象
        ssh_client = paramiko.SSHClient()
        # 自动添加主机密钥（不严格检查，方便示例，生产环境需谨慎）
        ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
        try: 
            # 建立连接
            ssh_client.connect(hostname=ip, 
                                port=22, 
                                username=username, 
                                password=password)
            
            return ssh_client
            
        except KeyError as e:
            print(e)